import request from '@/utils/request'



export function getRole(query){
  return request({
    url:'/role',
    method:'get',
    params:query
  })
}



export function delRole(id){
  return request({
    url:`/role/${id}`,
    method:'delete'
  })
}



export function updateRole(data){
  return request({
    url:`/role`,
    method:'put',
    data:data
  })
}


export function insertRole(data){
  return request({
    url:`/role`,
    method:'post',
    data:data
  })
}
